home *** CD-ROM | disk | FTP | other *** search
/ Mastering Web Site Development / Microsoft Mastering Web Site Development (Microsoft) (1997).iso / Media / Ch02 / W02D010.cc2 < prev    next >
Encoding:
Text File  |  1997-04-24  |  2.5 KB  |  46 lines

  1. 0, In this demonstration, you will see how to add 
  2. 4, standard HTML controls to a Web page using the 
  3. 7, FrontPage editor. This Web page should retrieve 
  4. 11, information about the user, such as their name and their 
  5. 14, age. In FrontPage, you add standard HTML controls 
  6. 18, to a page with the Insert menu and the Form Field 
  7. 22, command. Then select the control that you want to 
  8. 25, insert from this menu. Select One-Line Text Box to 
  9. 29, enter the Name information. With FrontPage, all 
  10. 34, controls need to be placed on a form. So FrontPage 
  11. 38, creates the form, indicated by this dashed box, and 
  12. 42, inserts the text box on it. To set properties of 
  13. 46, the text box, right-click the control, and select 
  14. 50, Form Field Properties. In the Text Box Properties 
  15. 55, dialog, you can set properties such as the Name and 
  16. 61, the length. Notice that FrontPage creates the 
  17. 68, text box, but doesn't supply any identifying text. 
  18. 72, You need to identify the field with your own text, 
  19. 80, such as Name. To send information from a form to 
  20. 84, the Web server, add a Submit button to the form. 
  21. 91, Select Insert, Form Field, and then select Push 
  22. 96, Button. The default type of Push button is a Submit 
  23. 100, button. Now you can set the Action property for the 
  24. 103, form. Right-click anywhere in the form and select 
  25. 107, Form Properties. Make sure the Form Handler is 
  26. 111, Custom ISAPI, NSAPI, or CGI Script, and select 
  27. 116, Settings. You can set the Action to the name of the 
  28. 120, Active Server Page you want to send the values of the 
  29. 123, controls on the form to, such as getuserdata.asp. 
  30. 134, Let's save this file and see what it looks like in 
  31. 137, the browser. Select Preview in Browser, then select 
  32. 142, Microsoft Internet Explorer. The Web page, in 
  33. 148, Internet Explorer, contains the text box and the 
  34. 151, Submit button that we added. You can enter data into 
  35. 156, the text box, such as your name, and when you 
  36. 159, select the Submit button, it will send the value of the 
  37. 161, text box to the Active Server Page. Let's look at 
  38. 166, the source for this HTML page. You can see the 
  39. 175, tags that were added by FrontPage: the tag for the 
  40. 177, form with the Action set to the Active Server Page, 
  41. 182, the tag for the Name text box, with the size set 
  42. 186, to 10, and the name set to the txtName, as we set in 
  43. 191, the FrontPage Editor, and the tag for the Submit 
  44. 194, button. So, now you have seen how to add standard 
  45. 199, HTML controls to a form with the FrontPage editor.
  46. 204, END